import requests

url = 'https://movie.douban.com/j/search_subjects'
query_param = {
    "type": "movie",
    "tag": "最新",
    "page_limit": 50,
    "page_start": 0
}

user_agent = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'}

res = requests.get(url, params=query_param, headers=user_agent)

print(res.status_code)
print(res.request.headers)


